let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start"),
                    Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.ZlipPacket = void 0);
                var n = t('ByteArray'),
                    i = t('BufferUtils'),
                    r = (function() {
                        function t(t, e) {
                            void 0 === e && (e = !1),
                                t && ((this._isFileNameFreeLength = e), this.init(t));
                        }
                        return (
                            (t.prototype.init = function(e) {
                                if (
                                    ((this._files = {}),
                                        (this._buffs = new n.default()),
                                        (this._buffs.endian = n.default.LITTLE_ENDIAN),
                                        (this._buffs.position = 0),
                                        null != e)
                                ) {
                                    var o,
                                        r = void 0,
                                        a = void 0,
                                        s = void 0,
                                        c = void 0;
                                    ((c = i.default.decompress(e)).endian =
                                        n.default.LITTLE_ENDIAN),
                                    (c.position = 0),
                                    (o = c.readInt());
                                    for (var l = 0; l < o; l++) {
                                        if (this._isFileNameFreeLength) {
                                            var u = c.readInt();
                                            r = c.readUTFBytes(u);
                                        } else r = c.readUTFBytes(t.FileNameLen);
                                        (a = c.readInt()),
                                        (s = c.readInt()),
                                        (this._files[r] = {
                                            pos: a,
                                            size: s
                                        });
                                    }
                                    c.readBytes(this._buffs, 0);
                                }
                            }),
                            (t.prototype.readString = function(t) {
                                if (this._files) {
                                    var e = this._files[t];
                                    if (e && this._buffs && e.pos + e.size <= this._buffs.length)
                                        return (
                                            (this._buffs.position = e.pos),
                                            this._buffs.readUTFBytes(e.size)
                                        );
                                }
                                return '';
                            }),
                            (t.prototype.readBinary = function(t) {
                                var e = new n.default();
                                if (this._files) {
                                    var o = this._files[t];
                                    o &&
                                        this._buffs &&
                                        o.pos + o.size <= this._buffs.length &&
                                        ((this._buffs.position = o.pos),
                                            this._buffs.readBytes(e, 0, o.size));
                                }
                                return e;
                            }),
                            (t.FileNameLen = 32),
                            t
                        );
                    })();
                (o.ZlipPacket = r), console.log("end");
            module.exports =  e.exports;